package cloud.xlh.digital_power_order.util;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : xlh_osms
 * @ Author: XuLeHuang
 * @ Date: 2023/10/6 19:42
 * @ Description:
 */
public class StringUtil {
    /**
     * 设置首字母小写
     */
    public static String setFirstByteLowerCase(String srcString) {
        if (srcString == null || srcString.length() == 0) {
            return "";
        }
        char[] s = srcString.toCharArray();
        int firstCase = s[0];
        if (firstCase >= 'A' && firstCase <= 'Z') {
            firstCase += 32;
            s[0] = (char) firstCase;
        }
        return new String(s);
    }
}
